package dot

import "Family/app/entity"
type AddMemberReq struct {
	Nickname  string `json:"nickname"`
	Gender    string `json:"gender"`
	Birthdate string `json:"birthdate"`
	FatherId  string `json:"father_id"` // 父亲
	MotherId  string `json:"mother_id"` // 母亲
	Intro     string `json:"intro"`
}
type UpdateMemberReq struct {
	MemberId string `json:"member_id"`
	AddMemberReq
}

type GetListReq struct {
	Page  int `json:"page"`
	Limit int `json:"limit"`
}

type GetListResp struct {
	entity.Member
	MateName   string `json:"mate_name"`
	FatherName string `json:"father_name"`
	MotherName string `json:"mother_name"`
}

type DeleteReq struct {
	MemberId int `json:"member_id"`
}

